<template>
  <div>
     <!-- 引入公共头部组件rightText="新建" -->
     <HeaderMenu title="服务工单"  leftText="返回" />
    <div style="width: 100%;">
      <!-- 工单管理 -->
      <div class="worklisttop" @click="workOrderManageClick">
        <!-- padding:10px 0 0 15px -->
        <div class="worktopitem" style="width:50%;">
          <div class="workradio">
             <img src="../../assets/xiaofangzi.png" alt=""/>
          </div>
          <!-- padding-top: 22px; -->
          <span style="color:#fff;font-weight:bold;padding-left: 10px;font-size:15px">工单管理</span>
        </div>
        <div class="worktopimg" style="width:50%;text-align:right">
          <img  src="../../assets/gongdanguanli.png" alt="">
        </div>
      </div>

      <!-- 我的工单 -->
      <div  class="worklistbottom" @click="myWorkOrderClick">
        <!-- padding:10px 0 0 15px -->
        <div class="worktopitem"  style="width:50%;">
          <div class="workradio">
              <img src="../../assets/xiaofangzi.png" alt=""/>
            </div>
            <!-- padding-top: 22px; -->
          <span style="color:#fff;font-weight:bold;padding-left: 10px;font-size:15px">我的工单</span>
        </div>
        <div class="workbottomimg" style="width:50%;text-align:right">
          <img  src="../../assets/wodegongdan.png" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// 引入公共头部组件
import HeaderMenu from "../../components/VolHeaderMenu.vue"
import { Card } from "vant";
import {
  Search,
  NavBar,
  Dialog,
  Pagination,
  SwipeCell,
  Empty,
  Icon,
  Tag
} from "vant";

export default {
  components: {
    // myWork,
    "van-tag": Tag,
    // PaginationCom,
    "van-icon": Icon,
    "van-swipe-cell": SwipeCell,
    "van-empty": Empty,
    "van-pagination": Pagination,
    "van-nav-bar": NavBar,
    "van-card": Card,
    "van-search": Search,
    // 注册公共头部组件
    HeaderMenu
  },

  data() {
    return {
    };
  },

  methods: {
    // 工单管理页点击事件
    workOrderManageClick(){
      this.$router.push({
        path: "/workOrder/workOrderManage"
        // query: { Id: item.Id }
      });
    },
    // 我的工单页点击事件
    myWorkOrderClick(){
      this.$router.push({
        path: "/workOrder/myWorkOrder"
        // query: { Id: item.Id }
      });
    },
    // 返回上一页
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      this.$router.push({ path: "/service/Edit", query: { readonly: 0 } });
      // this.$refs.edit.openForm();
      // this.readonly = false;
    },
  }
};
</script>

<style scoped>
.worktopitem{
  display: flex;
  justify-content: center;
    align-items: center;
}
.workradio{
  border-radius: 50%;
  width: 40%;
  height: 55%;
  background-color: rgba(255,244,234,0.2);
  display:flex;
  justify-content: center;
  align-items: center;
}
.workradio img{
  height: 50px;
  width: 70%;
}
.workbottomimg img{
  width: 95%;
  margin-top: -14px;
}
.worktopimg img{
  width: 65%;
  margin-top: -20px;
}
.worklisttop{
  margin: 15px auto;
  width: 93%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  padding: 5px 5px 5px 0;
  background: linear-gradient(to bottom right, #05b0ed, #17dcba);
}
.worklistbottom{
  margin: 0 auto;
  padding: 5px 5px 5px 0;
  width: 93%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  background: linear-gradient(180deg,  #e99bfc 0%, #b560ff 100%);
}

.DeliverAddress {
  margin-left: 10px;
  padding-bottom: 10px;
}
.state {
  display: flex;
  justify-content: space-between;
}
.pagination {
  position: absolute;
  bottom: 5px;
  right: 20%;
}
.delete {
  padding-top: 10px;
  background-color: #fff;
  padding-right: 20px;
  height: 60px;
  font-size: 60px;
  color: red;
}
.outerBox {
  height: calc(100vh - 140px);
  padding-bottom: 60px;
  box-sizing: border-box;
  overflow: auto;
}
.btn {
  position: absolute;
  bottom: 0;
  right: 0;
}
.sampleName {
  font-weight: 600;
  line-height: 1.8;
  width: 240px;
  color: #000;
  font-size: 18px;
  margin-left: 10px;
  margin-top: 5px;
}
.MySamplebox {
  box-shadow: 2px 2px 5px #ccc;
  border-radius: 5px;
  position: relative;
  width: 95%;
  /* height: 85px; */
  margin: 3px auto;
  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; */
  margin-bottom: 10px;
}
/* img {
  width: 100px;
  height: 100px;
} */

.fixedbox {
  position: fixed;
  bottom: 0;
  right: 0;
  /* height: 50px; */
  background: #fff;
  width: 100vw;
}
.pagination {
  position: absolute;
  bottom: 5px;
  right: 20%;
}
.code {
  display: flex;
  justify-content: start;
  margin-left: 10px;
  color: #777;
}
.Foricon {
  color: blue;
  position: absolute;
  right: 8px;
}
.btn {
  position: absolute;
  bottom: 0;
  right: 0;
}

.formalBox {
  height: calc(100vh - 150px);
  padding-bottom: 50px;
  box-sizing: border-box;
  overflow: auto;
}

.cardName {
  padding-top: 10px;
  /* margin-left: 10px; */
  margin-bottom: 5px;
  color: #000000;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.8;
  padding-left: 10px;
}
.companyAddress {
  padding-top: 10px;
  margin-left: 10px;

  color: #777;
  /* font-weight: 600;
  font-size: 18px; */
  line-height: 1.3;
}
.boxFormal {
  box-shadow: 2px 2px 5px #ccc;
  border-radius: 5px;
  position: relative;

  width: 95%;
  /* height: 80px; */
  padding-bottom: 10px;
  margin: 3px auto;
  margin-bottom: 10px;
}
/* .Father {
  display: flex;
} */
</style>
